﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MainWeb.Master" Inherits="System.Web.Mvc.ViewPage<List<LangMauViet.Models.Entity.News>>" %>
<%@ Import Namespace="LangMauViet.Classes.Helper" %>
<%@ Import Namespace="LangMauViet.Models.Entity" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    langmauviet.vn - <%=Model!=null&&Model.Count> 0? Model[0].Title : "Chi tiết" %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<% 
    var news = ((List<News>)ViewData["listNews"])[0];

    var hotNews = (List<News>)ViewData["lNewsHotWeb"];
    var newNews = (List<News>)ViewData["nlistHotWeb"]; 
    
%>
       <div class="container watch-container">
                                    
<div  style="width: 640px; float: left; margin-bottom: 10px;">
      <% if (!ReferenceEquals(news, null))
         { %>
    <h1><%= news.Title%></h1>
    <%-- <center>--%>
           <%-- <img src='http://vipmobi.net:7001/mobile/download?v=1&w=250&id=<%= image.Icon %>' alt="<%=image.Name%>"
                width="80%" />
            <div class="left clear" style="width: 100%; margin-top: 20px; padding-bottom: 20px;">
                <%=image.Name%>
            </div>--%>
             <%=news.Content %>
  <%--      </center>--%>
        <% } %>
</div>

<div id="main-content">
    <div id="watch-content" class="box">
     
   
        <div id="relatedClipCarousel-yw0" class="box carousel slide offslide clearfix">
    <div class="box-header playlist-featured">
        <h3>Tin nổi bật</h3>
    </div>
    <div class="box-content box-clip">
                <div class="carousel-inner">
                                    <div class="item active">
                <div class="vlist clearfix">
                    <div class="vlist-inner clearfix">
                                                    <ul>
                                                  <% if (!ReferenceEquals(newNews, null))
                                    {
                                        int j = 2;
                                        for (int i = 0; i < newNews.Count; i++)
                                        {
                                            News newse = newNews.ElementAt(i);
                                         %>
                                         <% if (i==j)
                                            {
                                                j += 3;
                                         %>
                                         <li class="vitem vlarge last"> 
                                             <% }
                                            else
                                            { %>
                                             <li class="vitem vlarge">
                                             <% } %>
                                                
                                        <a title="<%= newse.Title %>" href="/Tin-tuc/Chi-tiet/<%= newse.NewsId %>/<%=UIHelper.convertToUnSign(newse.Title) %>" class="vlink">
                                            <div class="vthumb">
                                                <img alt="<%= newse.Title %>" src="http://vipmobi.net:7001/mobile/download?v=1&w=500&h=500&id=<%= newse.Icon %>">
                                               </div>
                                            <h4 class="max-line-2"><%= newse.Title%></h4>
                                        </a>
                                    </li>
                                               
                                                <% }
                                    } %>                                                                      
                                                   
                                           </ul>
                      </div>
                </div>
            </div>
                    </div>
    </div>
</div>

    </div>
</div>
<div  style="margin-top: 20px;margin-left: 647px; width: 300px;"> <!-- id="sidebar" class="watch-sidebar"-->
    <%--  <div class="box2">
            <div class="ajaxads" data-id="watchpage*right_banner">
                <iframe width="300px" height="250px" src="../Image/Sốt với Ngọc Trinh múa cột khêu gợi trên biển Thái Lan - langmauviet.vn_files/4.htm" frameborder="0" allowfullscreen=""></iframe>
            </div>        </div>--%>
            <div class="box2 clearfix">
        <div class="box-header">
            <h3>Tin Hot</h3>
        </div>
        <div class="box-content box-clip nano has-scrollbarp has-scrollbar">
            <div class="vlist vrecent recentclip-block vscroll sliderContent clearfix" tabindex="0" style="right: -17px;">
                <ul>
                        <% if (!ReferenceEquals(hotNews, null))
               {
                   foreach (News v in hotNews)
                   {
              %>
               <li class="vitem vsmall vvertical">
                            <a title="<%= v.Title%>" href="/Tin-tuc/Chi-tiet/<%= v.NewsId %>/<%=UIHelper.convertToUnSign(v.Title) %>" class="vlink">
                                <div class="vthumb">
                                    <img src="http://vipmobi.net:7001/mobile/download?v=1&w=150&h=150&id=<%=v.Icon%>">
                                   <!-- <span class="vticker">03:38</span>
                                    <span class="watch-later _watch_later " title="Đánh dấu chờ xem lại" data-cid="1556189"><i class="icon-time"></i></span>       -->
                                  </div>
                                <h4><%= v.Title%></h4>
                            </a>
                        </li>
              
              
               <%    }
               }%>
                          
                                    </ul>
            </div>
    
    
    
    
        <div class="pane" style="opacity: 1; visibility: visible;"><div class="slider" style="height: 87px; top: 173.74830852503382px;"></div></div></div>
    </div>  
    
    
    
    
    
    
    
    
    

     
    
    <div class="box2" id="box_widget" style="position: static; top: auto; width: 300px; left: 849.5px; margin-top: 0px;">
            </div>

</div>
</div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="metaheader" runat="server">
</asp:Content>
